gtk4.git
11 years agogtk: port missing array annotations from Vala bindings
Evan Nemerson [Mon, 26 May 2014 16:29:56 +0000 (09:29 -0700)]
gtk: port missing array annotations from Vala bindings

https://bugzilla.gnome.org/show_bug.cgi?id=730745

11 years agogtk: fix many callback annotations to include closure information
Evan Nemerson [Mon, 26 May 2014 16:24:00 +0000 (09:24 -0700)]
gtk: fix many callback annotations to include closure information

Without this information introspection-based consumers don't realize
they can include context information, but instead think that they
receive an extra gpointer argument (which they don't know how to
handle).

https://bugzilla.gnome.org/show_bug.cgi?id=730745

11 years agoAdd some gesture tests
Matthias Clasen [Tue, 27 May 2014 23:15:40 +0000 (19:15 -0400)]
Add some gesture tests

This test starts to assemble tests related to event propagation,
interaction with traditional event signal handlers, claiming of
events, etc.

11 years agoForgotten file
Matthias Clasen [Tue, 27 May 2014 21:56:39 +0000 (17:56 -0400)]
Forgotten file

Oops.

11 years agoBump version
Matthias Clasen [Tue, 27 May 2014 21:49:22 +0000 (17:49 -0400)]
Bump version

11 years agoMove extract-strings to its own directory
Matthias Clasen [Tue, 27 May 2014 19:54:38 +0000 (15:54 -0400)]
Move extract-strings to its own directory

This will hopefully help resolve the circular dependency between
libgtk linking against inspector/libgtkinspector and inspector/
needing extract-strings from gtk/.

I didn't preserve the EXEEXT decorations in this operation -
automake gave me stern warnings about it, so I just dropped them
all. Somebody who cross-builds GTK+ will have to reconstruct this.

11 years agoFix distcheck
Matthias Clasen [Tue, 27 May 2014 19:14:02 +0000 (15:14 -0400)]
Fix distcheck

11 years ago3.13.2
Matthias Clasen [Tue, 27 May 2014 17:23:07 +0000 (13:23 -0400)]
3.13.2

11 years agoDon't assert in gtk_event_controller_constructed
Matthias Clasen [Tue, 27 May 2014 18:30:47 +0000 (14:30 -0400)]
Don't assert in gtk_event_controller_constructed

This prevents some of our generic object implementation tests
from working with gesture objects. Instead, add g_return_if_fail
checks in all the gesture constructors.

11 years agoDocumentation fixes
Matthias Clasen [Tue, 27 May 2014 17:40:57 +0000 (13:40 -0400)]
Documentation fixes

Add a few missing symbols, and match up parameters in headers
and doc comments.

11 years agowayland: Use event->key.time for setting key event time
Kristian Høgsberg [Mon, 26 May 2014 21:45:21 +0000 (14:45 -0700)]
wayland: Use event->key.time for setting key event time

We were using event->button.time before. That works because it's part of
the common event header, but it's wrong.

11 years agowayland: Remove unused XSERVER_TIME_IS_LATER macro
Kristian Høgsberg [Mon, 26 May 2014 20:43:48 +0000 (13:43 -0700)]
wayland: Remove unused XSERVER_TIME_IS_LATER macro

11 years agoSilence gtk-doc warnings
Matthias Clasen [Tue, 27 May 2014 16:45:04 +0000 (12:45 -0400)]
Silence gtk-doc warnings

11 years agoRevert "GtkImage: Drop use of GtkMisc::x/yalign"
Matthias Clasen [Tue, 27 May 2014 17:08:25 +0000 (13:08 -0400)]
Revert "GtkImage: Drop use of GtkMisc::x/yalign"

This reverts commit 54d5b426fca71dcda22ea5467054fa801556c20a.

Conflicts:
gtk/gtkimage.c

11 years agoRevert "GtkLabel: Drop use of GtkMisc::x/yalign"
Matthias Clasen [Tue, 27 May 2014 17:07:03 +0000 (13:07 -0400)]
Revert "GtkLabel: Drop use of GtkMisc::x/yalign"

This reverts commit b320c198b6d325c35e6f6d32f4f841a913efa956.

11 years agoRevert "Fix up GtkLabel and GtkImage sizing"
Matthias Clasen [Tue, 27 May 2014 17:04:43 +0000 (13:04 -0400)]
Revert "Fix up GtkLabel and GtkImage sizing"

This reverts commit 3b30cfa344ebc035ae7318dda5cfa11b8ab3aee7.

11 years agoRevert "More label and image sizing fixes"
Matthias Clasen [Tue, 27 May 2014 17:04:34 +0000 (13:04 -0400)]
Revert "More label and image sizing fixes"

This reverts commit 68c1e83cf0fd7432dbb151ff351ce225708e3ffb.

11 years agowindow: Do not raise border windows on each size allocation
Carlos Garnacho [Tue, 27 May 2014 09:44:45 +0000 (11:44 +0200)]
window: Do not raise border windows on each size allocation

This prevents these windows from being raised above popovers, which
is about the only child widget that may overlap with those anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=730589

11 years agotreeview: Make the multipress gesture listen only to bin_window
Carlos Garnacho [Tue, 27 May 2014 15:37:07 +0000 (17:37 +0200)]
treeview: Make the multipress gesture listen only to bin_window

This gesture is meant to handle row-activated signaling, so make the
gesture ignore events from any other window.

11 years agobutton: Claim the sequence on multipress::pressed
Carlos Garnacho [Tue, 27 May 2014 15:35:36 +0000 (17:35 +0200)]
button: Claim the sequence on multipress::pressed

In order to avoid the event from bubbling, as it used to (not) do.

11 years agogesture: Fix wrong assert in gtk_gesture_set_window
Carlos Garnacho [Tue, 27 May 2014 15:33:31 +0000 (17:33 +0200)]
gesture: Fix wrong assert in gtk_gesture_set_window

The window must be part of the event controller widget, so
fix the inverted logic.

11 years agoeventcontroller: Hide more details
Carlos Garnacho [Tue, 27 May 2014 10:41:30 +0000 (12:41 +0200)]
eventcontroller: Hide more details

Signals are left hidden, so the only entry point to handle_event/reset
is API.

11 years agogtk: Update GtkGesture users to the GtkPropagationPhase semantics change
Carlos Garnacho [Tue, 27 May 2014 10:38:49 +0000 (12:38 +0200)]
gtk: Update GtkGesture users to the GtkPropagationPhase semantics change

Mainly doing s/TARGET/BUBBLE/ on the fully ported widgets, but GtkTreeView
where the double click handler has moved to GTK_PHASE_TARGET so it runs
parallelly to the still existing event handlers.

11 years agowidget: Change GtkCapturePhase behavior in event controllers' handling
Carlos Garnacho [Tue, 27 May 2014 10:14:52 +0000 (12:14 +0200)]
widget: Change GtkCapturePhase behavior in event controllers' handling

Previously, there would be globally just a capture and a bubble phase,
with the event just going down the hierarchy once, and the up once.
GTK_PHASE_TARGET actually meaning "run within event handlers", so in
a hierarchy of 3 widgets, emission would be:

  Capture(C)
  Capture(B)
  Capture(A)
  Target(A) (if event handlers allow)
  Bubble(A)
  Target(B) (if event handlers allow)
  Bubble(B)
  Target(C) (if event handlers allow)
  Bubble(C)

This commit changes this behavior and uses GTK_PHASE_TARGET in a less
misleading way, running only on the widget that was meant to receive
the event. And GTK_PHASE_BUBBLE has taken over the execution place of
GTK_PHASE_TARGET, so the emission remains:

  Capture(C)
  Capture(B)
  Capture(A)
  Target(A)
  Bubble(A) (if event handlers allow)
  Bubble(B) (...)
  Bubble(C) (...)

As it was, GTK_PHASE_BUBBLE was useful for running event controllers
paralelly to event handlers, without modifying a single line in those.
For those mixed scenarios, Any of the other phases will have to be
used at discretion, or the event handlers eventually changed to chain
up and let the default event handlers in GtkWidget to be run.

11 years agowindow: Avoid double event processing in the multipress event controller
Carlos Garnacho [Tue, 27 May 2014 10:14:17 +0000 (12:14 +0200)]
window: Avoid double event processing in the multipress event controller

The events to those are fed outside the regular event propagation scheme,
through _gtk_window_check_handle_wm_event(), so set the controller to
GTK_PHASE_NONE so events aren't processed first manually, and then
automatically.

11 years agogesturezoom: Just return a double in get_scale_delta()
Carlos Garnacho [Mon, 26 May 2014 12:32:59 +0000 (14:32 +0200)]
gesturezoom: Just return a double in get_scale_delta()

Checking whether the gesture is active is a responsibility of the caller.

11 years agogesturerotate: Just return a double in get_angle_delta()
Carlos Garnacho [Mon, 26 May 2014 12:29:17 +0000 (14:29 +0200)]
gesturerotate: Just return a double in get_angle_delta()

Whether the gesture is active or recognized should be checked before in
callers, or just not used naively.

11 years agogesture: Replace gtk_gesture_attach/detach with event controller API
Carlos Garnacho [Mon, 26 May 2014 12:02:30 +0000 (14:02 +0200)]
gesture: Replace gtk_gesture_attach/detach with event controller API

Event controllers now auto-attach, and the GtkCapturePhase only determines
when are events dispatched, but all controllers are managed by the widget wrt
grabs.

All callers have been updated.

11 years agogtk: Update callers of GtkGesturePan orientation
Carlos Garnacho [Mon, 26 May 2014 10:38:06 +0000 (12:38 +0200)]
gtk: Update callers of GtkGesturePan orientation

11 years agoeventcontroller: Make the event-mask property and methods private.
Carlos Garnacho [Mon, 26 May 2014 10:08:55 +0000 (12:08 +0200)]
eventcontroller: Make the event-mask property and methods private.

This will rarely have any use if no subclassing is allowed, so just make it
private for our own.

11 years agogtk: Replace GtkPanOrientation with GtkOrientation
Carlos Garnacho [Mon, 26 May 2014 09:58:18 +0000 (11:58 +0200)]
gtk: Replace GtkPanOrientation with GtkOrientation

And document GtkOrientation to be more generic. There's little added
value in a separate enum for this.

11 years agoMore label and image sizing fixes
Matthias Clasen [Tue, 27 May 2014 10:00:21 +0000 (06:00 -0400)]
More label and image sizing fixes

Go back to respecting GtkMisc::xpad/ypad. Not doing so breaks
the misc-alignment reftest. As long as we still derive from
GtkMisc, we may as well do this.

11 years agoFix up GtkLabel and GtkImage sizing
Matthias Clasen [Tue, 27 May 2014 04:21:46 +0000 (00:21 -0400)]
Fix up GtkLabel and GtkImage sizing

When GtkMisc was removed, I forgot to apply the style context
padding. This caused the info-bar-message-types reftest to fail.

11 years agoDon't use hicolor as the default icon-theme
Matthias Clasen [Tue, 27 May 2014 03:15:53 +0000 (23:15 -0400)]
Don't use hicolor as the default icon-theme

The icontheme lookup code has a special-case that prefers builtin icons
if the theme name is "hicolor". This is problematic for our reftests,
which run in a barebones environment with not settings.

11 years agodocs: enum cleanup
Matthias Clasen [Mon, 26 May 2014 14:37:34 +0000 (10:37 -0400)]
docs: enum cleanup

Move GtkIMPreeditStyle nad GtkIMStatusStyle to the settings where
they are solely used.

11 years agodocs: enum cleanup
Matthias Clasen [Mon, 26 May 2014 14:24:02 +0000 (10:24 -0400)]
docs: enum cleanup

Move GtkStateType to the GtkWidget apis where it is used, and
mark the enum as deprecated.

11 years agodocs: remove markup
Matthias Clasen [Mon, 26 May 2014 14:17:07 +0000 (10:17 -0400)]
docs: remove markup

The overview chapters don't go through shorthand processing, so
don't use them there.

11 years agoGtkApplication: Fix two muxer-related memory leaks
Kalev Lember [Mon, 19 May 2014 11:19:11 +0000 (13:19 +0200)]
GtkApplication: Fix two muxer-related memory leaks

Drop the ref on the action muxer in finalize, and also make sure
shutdown() tears down the muxer setup done in startup().

When GtkApplication adds itself to a muxer, it causes the muxer to take
a ref on the GtkApplication. This has to be undone in shutdown() to make
sure the GtkApplication doesn't end up holding a ref on itself.

https://bugzilla.gnome.org/show_bug.cgi?id=730383

11 years agoinspector: Allow changing attribute mappings
Matthias Clasen [Sun, 25 May 2014 03:30:01 +0000 (23:30 -0400)]
inspector: Allow changing attribute mappings

11 years agodocs: Move GdkColor off into a deprecated section
Matthias Clasen [Sun, 25 May 2014 00:46:30 +0000 (20:46 -0400)]
docs: Move GdkColor off into a deprecated section

11 years agoBump ATK dependency to 2.12
Kalev Lember [Sat, 24 May 2014 22:17:55 +0000 (00:17 +0200)]
Bump ATK dependency to 2.12

... for the new AtkValue interface that we implement.

11 years agoSome more updates
Matthias Clasen [Sat, 24 May 2014 22:41:16 +0000 (18:41 -0400)]
Some more updates

11 years agoTypo fixes
Matthias Clasen [Sat, 24 May 2014 22:18:36 +0000 (18:18 -0400)]
Typo fixes

11 years agoOrganize the icons
Matthias Clasen [Sat, 24 May 2014 15:16:35 +0000 (11:16 -0400)]
Organize the icons

Sort the icon list in check-icon-theme.c, and add
comments so we have a chance of keeping the order.

11 years agoDrop an unused object
Matthias Clasen [Sat, 24 May 2014 15:06:10 +0000 (11:06 -0400)]
Drop an unused object

A downside of using templates is that we can have 'parasitic'
objects in there that don't get used for anything.

11 years agoGtkIconTheme: Add more debug spew
Matthias Clasen [Sat, 24 May 2014 15:01:27 +0000 (11:01 -0400)]
GtkIconTheme: Add more debug spew

Still trying to track down test problems in gnome-continuous.

11 years agowayland: Add support for show_window_menu
Jasper St. Pierre [Sat, 24 May 2014 03:01:27 +0000 (23:01 -0400)]
wayland: Add support for show_window_menu

11 years agoimage: Draw the image again
Benjamin Otte [Sat, 24 May 2014 17:38:56 +0000 (19:38 +0200)]
image: Draw the image again

An important line of code was removed in
54d5b426fca71dcda22ea5467054fa801556c20a that lead to an undefined
variable. Add that line back.

11 years agocombobox: Implement clip
Benjamin Otte [Sat, 24 May 2014 14:21:02 +0000 (16:21 +0200)]
combobox: Implement clip

11 years agoentry: Implement clip
Benjamin Otte [Sat, 24 May 2014 14:20:48 +0000 (16:20 +0200)]
entry: Implement clip

11 years agogestureswipe: Fix return value
Benjamin Otte [Sat, 24 May 2014 14:16:41 +0000 (16:16 +0200)]
gestureswipe: Fix return value

11 years agoimage: Remove unused variable
Benjamin Otte [Sat, 24 May 2014 14:16:32 +0000 (16:16 +0200)]
image: Remove unused variable

11 years agobutton: Implement clip
Benjamin Otte [Fri, 23 May 2014 14:01:45 +0000 (16:01 +0200)]
button: Implement clip

11 years agowidget: Include box-shadow in the clip
Benjamin Otte [Fri, 23 May 2014 13:52:16 +0000 (15:52 +0200)]
widget: Include box-shadow in the clip

This allows all widgets that implement clip to use box shadows.

11 years agowidget: Add _gtk_widget_set_css_clip()
Benjamin Otte [Wed, 21 May 2014 21:13:52 +0000 (23:13 +0200)]
widget: Add _gtk_widget_set_css_clip()

... and use it in GtkBox and GtkGrid.

11 years agospinner: Implement clip
Benjamin Otte [Mon, 19 May 2014 13:33:28 +0000 (15:33 +0200)]
spinner: Implement clip

We now allow you to gtk-icon-transform() the spinner outside of the
spinners allocation.

11 years agoAPI: widget: Add gtk_widget_set_clip() API
Benjamin Otte [Sun, 18 May 2014 14:02:04 +0000 (16:02 +0200)]
API: widget: Add gtk_widget_set_clip() API

And handle the fact that drawing bounds are now handled by this API and
the corresponding gtk_widget_get_clip().

Also add _gtk_widget_supports_clip() function to check if a widget has
been ported to the new world.

11 years agodocs: Flesh out the inspector section a bit
Matthias Clasen [Sat, 24 May 2014 14:07:46 +0000 (10:07 -0400)]
docs: Flesh out the inspector section a bit

11 years agoinspector: Make picking widgets work again
Matthias Clasen [Sat, 24 May 2014 13:54:06 +0000 (09:54 -0400)]
inspector: Make picking widgets work again

This broke when I accidentally removed the line that adds
each object to the hash table. Bring it back.

11 years agodocs: Fix make dist
Rico Tzschichholz [Sat, 24 May 2014 10:16:56 +0000 (12:16 +0200)]
docs: Fix make dist

11 years agobuild: Fix typo
Rico Tzschichholz [Sat, 24 May 2014 07:52:41 +0000 (09:52 +0200)]
build: Fix typo

11 years agogtk: Fix make dist
Rico Tzschichholz [Sat, 24 May 2014 07:24:46 +0000 (09:24 +0200)]
gtk: Fix make dist

11 years agobuild/win32: Drop a11y library references
Rico Tzschichholz [Sat, 24 May 2014 07:23:52 +0000 (09:23 +0200)]
build/win32: Drop a11y library references

In addition to  4a4b23bfad8b30372f78b75e1eb5e68279ff5b09

11 years agoUpdated POTFILES.in
Rico Tzschichholz [Sat, 24 May 2014 07:22:53 +0000 (09:22 +0200)]
Updated POTFILES.in

11 years agodocs: more input handling docs
Matthias Clasen [Sat, 24 May 2014 05:56:44 +0000 (01:56 -0400)]
docs: more input handling docs

11 years agoFix a start/end mixup
Matthias Clasen [Sat, 24 May 2014 04:47:16 +0000 (00:47 -0400)]
Fix a start/end mixup

The headerbar example in gtk3-demo was showing two start buttons
after the arrow removal.

11 years agoGtkMisc: Keep gtk_misc_set_alignment working
Matthias Clasen [Fri, 23 May 2014 09:56:52 +0000 (05:56 -0400)]
GtkMisc: Keep gtk_misc_set_alignment working

Now that labels and images no longer use x/yalign in their code,
we need to make gtk_misc_set_alignment set the h/valign for these
widgets, to keep it stumbling along until its final demise.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoGtkToolButton: Drop use of GtkMisc
Matthias Clasen [Fri, 23 May 2014 02:54:18 +0000 (22:54 -0400)]
GtkToolButton: Drop use of GtkMisc

Use h/valign instead of x/yalign.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoGtkAssistant: Drop use of GtkMisc
Matthias Clasen [Fri, 23 May 2014 02:53:52 +0000 (22:53 -0400)]
GtkAssistant: Drop use of GtkMisc

Use halign instead of xalign.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoGtkAccelLabel: Drop use of GtkMisc
Matthias Clasen [Fri, 23 May 2014 02:53:17 +0000 (22:53 -0400)]
GtkAccelLabel: Drop use of GtkMisc

Just use 0 instead of xpad.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoGtkImage: Drop use of GtkMisc::x/yalign
Matthias Clasen [Fri, 23 May 2014 02:51:00 +0000 (22:51 -0400)]
GtkImage: Drop use of GtkMisc::x/yalign

Instead, use GtkWidget::h/valign to position the image inside
the allocation. And just stop using GtkMisc::x/ypad.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoGtkLabel: Drop use of GtkMisc::x/yalign
Matthias Clasen [Fri, 23 May 2014 01:19:49 +0000 (21:19 -0400)]
GtkLabel: Drop use of GtkMisc::x/yalign

Instead, use GtkWidget::h/valign to position the text inside
the allocation. And just stop using GtkMisc::x/ypad.

https://bugzilla.gnome.org/show_bug.cgi?id=730613

11 years agoFix filechooser actionbar visibility
Matthias Clasen [Sat, 24 May 2014 04:00:00 +0000 (00:00 -0400)]
Fix filechooser actionbar visibility

The actionbar was always visible, even when there is no filter
and no extra widget to show. Now we only show it when there is
something to show.

11 years agoinspector: Treat resources the same as in gtk/
Matthias Clasen [Sat, 24 May 2014 03:00:43 +0000 (23:00 -0400)]
inspector: Treat resources the same as in gtk/

11 years agoAdd two more icon names to check
Matthias Clasen [Sat, 24 May 2014 02:59:22 +0000 (22:59 -0400)]
Add two more icon names to check

These were found in the trash monitor.

11 years agoDrop no-longer-used gtkrc files
Matthias Clasen [Sat, 24 May 2014 02:00:51 +0000 (22:00 -0400)]
Drop no-longer-used gtkrc files

These were replaced by css files long ago.

11 years agoDrop a pointless function
Matthias Clasen [Sat, 24 May 2014 01:56:44 +0000 (21:56 -0400)]
Drop a pointless function

No need to have a finalize function if it just chains
up to the parent class.

11 years agoTrivial: slight code rearrangement
Matthias Clasen [Sat, 24 May 2014 01:41:58 +0000 (21:41 -0400)]
Trivial: slight code rearrangement

11 years agotests: Stop using GtkAlignment
Matthias Clasen [Sat, 24 May 2014 00:42:47 +0000 (20:42 -0400)]
tests: Stop using GtkAlignment

Fix up all other tests to not use GtkAlignment anymore.

11 years agotestadjustsize: Keep using an alignment
Matthias Clasen [Sat, 24 May 2014 00:42:01 +0000 (20:42 -0400)]
testadjustsize: Keep using an alignment

We are explicitly comparing GtkAlignment with its replacements
here.

11 years agogtk-demo: Drop use of GtkAlignment
Matthias Clasen [Wed, 14 May 2014 03:18:17 +0000 (23:18 -0400)]
gtk-demo: Drop use of GtkAlignment

11 years agoDeprecate GtkAligment
Matthias Clasen [Sat, 24 May 2014 00:09:08 +0000 (20:09 -0400)]
Deprecate GtkAligment

This has been dangling ever since 3.0.

https://bugzilla.gnome.org/show_bug.cgi?id=645781

11 years agoDrop an unneeded include
Matthias Clasen [Sat, 24 May 2014 00:04:36 +0000 (20:04 -0400)]
Drop an unneeded include

There's no GtkGesture in gtkwidget.h anymore. We do need an include
in gtkwidgetprivate.h though.

11 years agoa11y: build directly into libgtk instead of an internal library
Evan Nemerson [Fri, 23 May 2014 04:09:59 +0000 (21:09 -0700)]
a11y: build directly into libgtk instead of an internal library

https://bugzilla.gnome.org/show_bug.cgi?id=730615

11 years agoMore updates
Matthias Clasen [Fri, 23 May 2014 21:32:14 +0000 (17:32 -0400)]
More updates

11 years agoSome updates
Matthias Clasen [Fri, 23 May 2014 20:11:48 +0000 (16:11 -0400)]
Some updates

11 years agoUpdated POTFILES.in
Piotr Drąg [Fri, 23 May 2014 18:48:12 +0000 (20:48 +0200)]
Updated POTFILES.in

11 years agoMerge branch 'gestures'
Carlos Garnacho [Fri, 23 May 2014 17:58:46 +0000 (19:58 +0200)]
Merge branch 'gestures'

11 years agospinbutton: Avoid touch text handles to pop up
Carlos Garnacho [Thu, 22 May 2014 14:04:03 +0000 (16:04 +0200)]
spinbutton: Avoid touch text handles to pop up

Those get in the middle more than help on these widgets, the widget
is already packed with clickable areas and having handles (and their
invisible clickable area around) hovering above don't help, plus the
purpose in most likely numeric values is a bit doubtful.

All touch events are either consumed by the up/down panels, or
the swipe gesture, all GtkEntry handling of touch events on the text
window is avoided, so handles to not appear anymore.

11 years agocolorswatch: Set gestures in GTK_PHASE_TARGET
Carlos Garnacho [Thu, 22 May 2014 13:39:31 +0000 (15:39 +0200)]
colorswatch: Set gestures in GTK_PHASE_TARGET

That's the right phase for gestures replacing entirely event handlers.

11 years agospinbutton: Use GTK_PHASE_CAPTURE for touch swipes
Carlos Garnacho [Thu, 22 May 2014 13:36:32 +0000 (15:36 +0200)]
spinbutton: Use GTK_PHASE_CAPTURE for touch swipes

The gesture must be able to catch first events for it to be seen
as recognized in event handlers.

11 years agowidget: Flip execution order of GTK_PHASE_TARGET/BUBBLE
Carlos Garnacho [Thu, 22 May 2014 13:24:28 +0000 (15:24 +0200)]
widget: Flip execution order of GTK_PHASE_TARGET/BUBBLE

the "bubble" phase used to run before event handlers before GTK_PHASE_TARGET
was added, in order to keep phases in the expected order, move GTK_PHASE_BUBBLE
to be run (still invariably) after event handlers.

The only behavioral change should be wrt widgets wanting mixed event handler/
gesture handling, they could previously attach the gesture to the bubble phase
and check for gtk_gesture_is_active() in the event handler to bail out, they'll
have to use GTK_PHASE_CAPTURE for that purpose from now on.

11 years agotexthandle: Mind the invisible area when moving the handle
Carlos Garnacho [Wed, 21 May 2014 12:58:50 +0000 (14:58 +0200)]
texthandle: Mind the invisible area when moving the handle

The handle is still centered horizontally, but the extra vertical
space wasn't taken into account, leading to misplacing the dragging
point (and the handle) during motion events.

11 years agotextview: Check first whether the sequence is handled, fetch later the event
Carlos Garnacho [Wed, 21 May 2014 12:57:07 +0000 (14:57 +0200)]
textview: Check first whether the sequence is handled, fetch later the event

And always unset/hide the selection popover if unhandled, that means the
sequence went grabbed/claimed somewhere else and cancelled here.

11 years agoentry: Check first whether the sequence is handled, fetch later the event
Carlos Garnacho [Wed, 21 May 2014 12:51:46 +0000 (14:51 +0200)]
entry: Check first whether the sequence is handled, fetch later the event

And always unset/hide the selection popover if unhandled, that means the
sequence went grabbed/claimed somewhere else and cancelled here.

11 years agogesture: Use GdkEventSequence GType in signals
Carlos Garnacho [Tue, 20 May 2014 12:10:31 +0000 (14:10 +0200)]
gesture: Use GdkEventSequence GType in signals

11 years agogesture: Introspection fixes
Carlos Garnacho [Tue, 20 May 2014 12:09:40 +0000 (14:09 +0200)]
gesture: Introspection fixes

Set annotations on return values for gtk_gesture_get_device() and
gtk_gesture_get_window().

11 years agoeventcontroller: introspection fix
Carlos Garnacho [Tue, 20 May 2014 12:08:27 +0000 (14:08 +0200)]
eventcontroller: introspection fix

Set transfer annotation on gtk_event_controller_get_widget()

11 years agogdk: Make GdkEventSequence a boxed type
Carlos Garnacho [Tue, 20 May 2014 12:07:16 +0000 (14:07 +0200)]
gdk: Make GdkEventSequence a boxed type

Not much to copy nor free, but this'll make bindings happy

11 years agopaned: Handle pointer events from touchscreen devices
Carlos Garnacho [Mon, 19 May 2014 21:02:49 +0000 (23:02 +0200)]
paned: Handle pointer events from touchscreen devices

GtkPaned may just capture pointer events because the child widget
doesn't happen to have GDK_TOUCH_MASK set, resort to checking the
device in that case.